package com.voute.Api;

import com.voute.Model.Bean.HotWordsBean;
import com.voute.Model.Bean.SearchResultBean;

import java.util.HashMap;

import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * 搜索相关接口
 * Created by liucxu on 2017/1/14.
 */

public interface SearchService {
    @GET("v1/search/hw")
    Observable<HotWordsBean>  getHotWords();

    @GET("v1/search")
    Observable<SearchResultBean> getSearchResults(@QueryMap HashMap<String,String> values);

    @GET("v1/search/rec")
    Observable<SearchResultBean> getRecommandSearch(@Query("q") String q);
}
